<template>
  <div class="usertwo">
    <UserTwoItem v-for="(item, index) in userList" :key="index" :data="item" />
  </div>
  <view class="loading-text">
    {{ finish ? '没有更多数据~' : '拼命加载中...' }}
  </view>
</template>
<script setup lang="ts">
import type { UserItem } from '@/types/index/home'
import UserTwoItem from './userTwoItem.vue'
defineProps<{ userList: UserItem[]; finish: boolean }>()
</script>

<style lang="scss" scoped>
.seek {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 14px;
}
.usertwo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}
.card {
  width: 48%;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.image-section {
  position: relative;
  width: 100%;
  height: 190px;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.verified-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: red;
  color: white;
  padding: 2px 5px;
  font-size: 12px;
  border-radius: 3px;
  z-index: 1;
}

.name-overlay {
  position: absolute;
  bottom: 4px;
  width: 100%;
  text-align: center;
  color: white;
  font-size: 16px;
  padding: 5px 0;
}

.details-section {
  padding: 16px;
  text-align: center;
}

.info {
  font-size: 14px;
  margin-top: 8px;
  color: #666;
}

.location-section {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-top: 8px;
  .location {
    background-color: #e5f6f8;
    color: #00aabf;
  }
  .location-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    margin-bottom: 2px;
  }
}

.job {
  background-color: #e5f6f8;
  margin-left: 5px;
  font-size: 14px;
  color: #00aabf;
}
// 加载提示文字
.loading-text {
  text-align: center;
  font-size: 28rpx;
  color: #666;
  padding: 20rpx 0;
  margin-bottom: 20rpx;
}
// 加载提示文字
.loading-text {
  text-align: center;
  font-size: 28rpx;
  color: #666;
  padding: 20rpx 0;
  margin-bottom: 20rpx;
}
</style>
